Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(init): set direction: 'auto' and import locales for new apps [LIBS-645] #867

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

KaiVandivier
Copy link
Contributor

@KaiVandivier KaiVandivier commented Jul 27, 2024

LIBS-645

Can be tested by checking out the branch and running yarn d2-app-scripts init new-app (note that the new app will use the version of cli-app-scripts on master): direction: 'auto' should be in d2.config.js, and setting an RTL language should display RTL direction (in the HTML, and the app text should look like "!Welcome to DHIS2")

The separation between boilerplate and config defaults can also be tested by commenting out direction: 'auto' in the config -- the current direction: 'ltr' default behavior should be restored

I think the version after the Vite migration would be a good time to update the default direction to 'auto' to try to avoid too many breaking changes with the migration

I also added the locale import to the entrypoint file, since that's a common oversight

@KaiVandivier KaiVandivier requested review from tomzemp and a team July 27, 2024 05:55
@KaiVandivier KaiVandivier merged commit 4eda4a9 into alpha Aug 12, 2024
10 checks passed
@KaiVandivier KaiVandivier deleted the libs-645-dir-auto-for-init branch August 12, 2024 13:20
dhis2-bot added a commit that referenced this pull request Aug 12, 2024
# [12.0.0-alpha.6](v12.0.0-alpha.5...v12.0.0-alpha.6) (2024-08-12)

### Features

* **init:** set direction: 'auto' and import locales for new apps [LIBS-645] ([#867](#867)) ([4eda4a9](4eda4a9))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 12.0.0-alpha.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants